//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import common.GlobalID;

public class MineGoodEntry implements IEntryToSellOrBuy, IUnlockLevel, IGlobalIDName {
   private Integer Instance = null;
   private final String Name;
   final Integer UnlockLevel;
   final Integer DumbValue;
   final Integer Probability;
   final Integer DiamondPrice;
   final Integer ExpCollect;

   public MineGoodEntry(String Name, Integer ExpCollect, Integer UnlockLevel, Integer DumbValue, Integer Probability, Integer DiamondPrice) {
      this.Name = Name;
      this.ExpCollect = ExpCollect;
      this.UnlockLevel = UnlockLevel;
      this.DumbValue = DumbValue;
      this.Probability = Probability;
      this.DiamondPrice = DiamondPrice;
   }

   public String getName() {
      return this.Name;
   }

   public Integer getUnlockLevel() {
      return this.UnlockLevel;
   }

   public Integer getProbability() {
      return this.Probability;
   }

   public Integer getDefaultPrice() {
      return this.DumbValue;
   }

   public Integer getDiamondPrice() {
      return this.DiamondPrice;
   }

   public void setInstance(int val) {
      this.Instance = Integer.valueOf(val);
   }

   public Integer getInstance() {
      return this.Instance;
   }

   public Integer getExpCollect() {
      return this.ExpCollect;
   }

   public Integer getGlobalID() {
      return Integer.valueOf(GlobalID.create(64, this.Instance.intValue()));
   }

   public String toString() {
      return "Name:" + this.Name + ", UnlockLevel:" + this.UnlockLevel + ", Probability:" + this.Probability;
   }

   public Integer getGlobalID(Integer objectClass) {
      return Integer.valueOf(GlobalID.create(objectClass.intValue(), this.Instance.intValue()));
   }
}
